compiler:
	@g++ -g -o compiler main.cpp analysis/*.cpp analysis/parser/*.cpp syntesis/*.cpp syntesis/graphs/*.cpp

yacc:
	@bison -o analysis/parser/parser.cpp -d analysis/non-c/parser.y

lex:
	@flex -o analysis/parser/tokens.cpp analysis/non-c/tokens.l

clean:
	@rm -f compiler analysis/parser/tokens.cpp analysis/parser/parser*

all:
	@$(MAKE) yacc
	@$(MAKE) lex
	@$(MAKE) compiler
